<?php 
$this->widget('ext.upload.Muploadify.MUploadify',array(
		'name'=>'Filedata',
		'buttonText'=>Yii::t('application','Upload a picture'),
		'script'=>array('work/upload','id'=>$_GET['id']),
		'checkScript'=>array('work/checkupload','id'=>$_GET['id']),
		'fileExt'=>'*.jpg;*.png;',
		'fileDesc'=>Yii::t('application','Image files'),
		'folder'=>'test',
		'multi'=> true,
		'scriptData'=>array('id'=>$_GET['id']),
		'onComplete'=>'js:function(event, ID, fileObj, response, data){updateImage(response);}',
		'uploadButton'=>true,
		'uploadButtonText'=>'开始上传',
		'uploadButtonTagname'=>'button',
		'uploadButtonOptions'=>array('class'=>'minimal'),
));
?>


<script type="text/javascript">
function updateImage(response)
{

	console.log(response);
}
</script>
